package com.agileboot.domain.airport.reform.db;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SirReformMainServiceImpl extends ServiceImpl<SirReformMainMapper, SirReformMainEntity> implements SirReformMainService {
    @Override
    public boolean deleteByInspectionCheckId(Long inspectionCheckId) {
        return this.baseMapper.deleteByInspectionCheckId(inspectionCheckId) > 0;
    }
    @Override
    public boolean deleteByRelatedQuestionId(Long relatedQuestionId) {
        return this.baseMapper.deleteByRelatedQuestionId(relatedQuestionId) > 0;
    }

    // 新增批量查询实现
    @Override
    public List<SirReformMainEntity> getByRelatedQuestionIds(List<Long> relatedQuestionIds) {
        return this.baseMapper.getByRelatedQuestionIds(relatedQuestionIds);
    }

}
